package com.lyk.coursearrange.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyk.coursearrange.entity.Jurisdiction;
import com.lyk.coursearrange.entity.dto.JurisdictionDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JurisdictionDao  extends BaseMapper<Jurisdiction> {
    List<JurisdictionDto> findByPoId(@Param("po_id")Long po_id);

    List<JurisdictionDto> selectJurisdictionparentid(@Param("jur_id")long jur_id);

    List<JurisdictionDto> selectJurByUserId(@Param("user_id") Integer id);

    List<JurisdictionDto> selectJurAllByName(@Param("jur_title") String po_name);

    List<Long> findByPoIdTwo(@Param("po_id") Long po_id);
}
